package com.yangff.entity.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVo {
    protected String msg;
    public static ResultVo success() {
        return new ResultVo( "Success");
    }
    public static ResultVo error() {
        return new ResultVo("Error");
    }

    public static ResultVo custom(String str) {
        return new ResultVo(str);
    }
}